package com.zhuang.chapter01;

public class Test {

	public static void main(String[] args) {
		System.out.println("Hello World");
		odd();
		sum();
	}

	public static void odd() {
		for (int i = 100; i <= 200; i++) {
			if (i % 2 != 0) {
				System.out.print(i + " ");
			}
		}
	}

	public static void sum() {
		int sum = 0;
		for (int i = 1; i <= 100; i++) {
			sum += i;
		}
		System.out.println("1+2+3+……+100的数据和" + sum);
	}
}
